package Mangos::DB::Characters::ArenaTeamMember;

use strict;

use base qw(Mangos::DB::Characters);

__PACKAGE__->meta->setup
(
    table   => 'arena_team_member',

    columns => 
    [
        arenateamid     => { type => 'integer', not_null => 1 },
        guid            => { type => 'integer', not_null => 1 },
        played_week     => { type => 'integer', default => '0', not_null => 1 },
        wons_week       => { type => 'integer', default => '0', not_null => 1 },
        played_season   => { type => 'integer', default => '0', not_null => 1 },
        wons_season     => { type => 'integer', default => '0', not_null => 1 },
        personal_rating => { type => 'integer', default => '0', not_null => 1 },
    ],

    primary_key_columns => [ 'arenateamid', 'guid' ],
);

1;

package Mangos::DB::Characters::ArenaTeamMember::Manager;

use strict;
use warnings;

use base 'Rose::DB::Object::Manager';

sub object_class { 'Mangos::DB::Characters::ArenaTeamMember' }

__PACKAGE__->make_manager_methods('arena_team_member');

1;
